<%@ page language="java" pageEncoding="utf-8"%>

<!DOCTYPE html>
<html>
<head>
<%@ include file="../include_new.jsp" %>
</head>
<body id="z_body">
	<div class="panel">
		<div class="panel-heading">
			<i class="icon icon-list"></i> 
			${actName}工作台配置信息
		</div>
		<div class="panel-body">		
			<form class="form-horizontal" id="form1">
				<input name="act" value="${act}" type="hidden"/>
				<div class="form-group">
					<label class="col-md-3"><font color='red'>*</font>机器IP</label>
					<div class="col-md-6">
						<input class="form-control" id="jqip"name="jqip" value="${one.jqip}" validType="ip,notEmpty"
						<c:if test="${act!='add'}"> readonly</c:if>
						>
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3"><font color='red'>*</font>机器名称</label>
					<div class="col-md-6">
						<input class="form-control" name="jqmc" value="${one.jqmc}"  validType="notEmpty">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3"><font color='red'>*</font>工作台号</label>
					<div class="col-md-6">
						<input class="form-control" id="gzth"  name="gzth" value="${one.gzth}"  validType="max999,notEmpty">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3" >工作台名称</label>
					<div class="col-md-6">
						<input class="form-control" name="gztmc" value="${one.gztmc}" >
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3"><font color='red'>*</font>工作台组</label>
						<div class="col-md-6">
							<input name="gztzbh" value="${one.gztzbh}" type="hidden">
							<input class="form-control app_selector" name="gztzmc" value="${one.gztzmc}" validType="notEmpty" data_tree="{type:'gztz'}">
						</div>
				</div>
				<div class="form-group">
					<label class="col-md-3"><font color='red'>*</font>指挥中心</label>
					<div class="col-md-6">
						<input name="zhzxbh" value="${one.zhzxbh}" type="hidden">
						<input class="form-control app_selector" name="zhzx" value="${one.zhzxmc}"  data_tree="{type:'zhzx'}">
					</div>
				</div>						
				<div class="form-group">
					<label class="col-md-3"><font color='red'>*</font>代理指挥中心</label>
					<div class="col-md-6">
						<input name="dlzhzxbh" value="${one.dlzhzxbh}" type="hidden">
						<input class="form-control app_selector" name="dlzhzxmc1" value="${one.dlzhzxmc}"  data_tree="{type:'zhzx'}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3">工作台工作属性</label>
					<div class="col-md-6">
						<input name="gztgzsxdm" value="${one.gztgzsxdm}" type="hidden">
						<input class="form-control app_selector" name="gztgzsxms" value="${one.gztgzsxms}"  data_tree="{type:'dict',extra:'工作台工作属性'}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3">工作台所属类别</label>
					<div class="col-md-6">
						<input name="gztsslb" value="${one.gztsslb}" type="hidden">
						<input class="form-control app_selector" name="gztsslbms" value="${one.gztsslbms}"  data_tree="{type:'dict',extra:'工作台所属类别'}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3">CTI属性</label>
					<div class="col-md-6">
						<input name="ctisxdm" value="${one.ctisxdm}" type="hidden">
						<input class="form-control app_selector" name="ctisxms" value="${one.ctisxms}"  data_tree="{type:'dict',extra:'工作台CTI状态'}">
					</div>
				</div>
				<div class="form-group">
						<label class="col-md-3"><font color='red'>*</font>代理单位</label>
						<div class="col-md-6">
							<input name="dldwdm" value="${one.dldwdm}" type="hidden">
							<input class="form-control app_selector" name="dldwmc" value="${one.dldwmc}" validType="notEmpty" data_tree="{type:'organ_m',multiSelect:true}">
						</div>
				</div>						

				<div class="form-group">
					<label class="col-md-3"><font color='red'>*</font>所属单位</label>
					<div class="col-md-6">
						<input name="ssdwdm" value="${one.ssdwdm}" type="hidden">
						<input class="form-control app_selector" name="ssdwmc" value="${one.ssdwmc}" validType="notEmpty" data_tree="{type:'organ_nb'}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3"><font color='red'>*</font>行政区划</label>
					<div class="col-md-6">
						<input class="form-control"  name="xzqh" value="${one.xzqh}" type="hidden">
						<input class="form-control app_selector" name="xzqhmc1" value="${one.xzqhmc}"  validType="notEmpty" data_tree="{type:'dict',extra:'行政区划'}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3">接警电话</label>
					<div class="col-md-6">
						<input class="form-control"  name="jjdh" value="${one.jjdh}" >
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3">处警电话</label>
					<div class="col-md-6">
						<input class="form-control"  name="cjdh" value="${one.cjdh}" >
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3">放音电话</label>
					<div class="col-md-6">
						<input class="form-control"  name="fydh" value="${one.fydh}" >
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3">虚拟电话</label>
					<div class="col-md-6">
						<input class="form-control"  name="xndh" value="${one.xndh}" >
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-md-3"></label>
					<div class="col-md-6">
						<a class="btn btn-primary" onclick="save()">保存</a> &nbsp;
						<a class="btn btn-default" onclick="history.go(-1)">取消</a>
					</div>
				</div>
				
			</form>
			
		</div>
	</div>

	
<script type="text/javascript">

/**
 * 保存
 */
function save() {
	//提交
	if(validateForm("form1")) {//表单验证
		tool.save("save", $("#form1").serialize(), function(data) {//提交
			parent.getPage();
			setTimeout(function(){
				parent.closeModal();
			}, 800);
		});
	}
}
	
</script>
</body>
</html>